package com.hqyj.demo.service.impl;

import com.hqyj.demo.entity.Goodstype;
import com.hqyj.demo.mapper.GoodstypeMapper;
import com.hqyj.demo.service.GoodstypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author smj
 * @since 2022-10-09
 */
@Service
public class GoodstypeServiceImpl extends ServiceImpl<GoodstypeMapper, Goodstype> implements GoodstypeService {
    @Autowired
    private GoodstypeMapper goodstypeMapper;
    @Override
    public List<Goodstype> allTypeList() {
        return goodstypeMapper.allTypeList();
    }

    @Override
    public List<Goodstype> selectTypeOfTier(Integer pid) {
        return goodstypeMapper.selectTypeOfTier(pid);
    }
}
